const { default: styled } = require("styled-components");

const LyricWarrper = styled.div`
  @keyframes expandAnim {
    100% {
      transform: rotate(360deg);
    }
  }
  // 实现QQ音乐双重背景遮盖层
  /* min-width: 980px; */
  user-select: none;
  overflow: hidden;
  &::before {
    content: "";
    display: block;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
  }
  &::after {
    content: "";
    display: block;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    background-image: url(${(props) => props.picUrl});
    background-size: cover;
    filter: blur(20px);
    background-color: gray;
  }
  position: fixed;
  transition: all 0.5s;
  bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  transform: translateY(${(props) => props?.position}vh);
  z-index: 99999;
  .detail-main {
    position: absolute;
    left: 0;
    right: 0;
    height: 80vh;
    top: 50%;
    transform: translateY(-50%);
    margin: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width: 30vw;
      height: 30vw;
      border-radius: 50%;
      border: 40px solid black;
      animation: expandAnim 10s linear infinite;
    }

    .msg {
      height: 30vw;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 40vw;
      .msg_title {
        font-size: 30px;
        display: flex;
        align-items: center;
        color: white;
        .vip {
          border-radius: 5px;
          font-size: 12px;
          padding: 0px 10px;
          margin-left: 5px;
          border: 1px solid rgb(30, 208, 164);
          color: rgb(30, 208, 164);
          transform: scale(0.9);
          &:last-child {
            color: yellow;
            border-color: yellow;
          }
        }
      }
      h3,
      h5 {
        font-size: 17px;
        color: rgb(144, 136, 123);
      }
      p {
        color: white;
        font-size: 17px;
      }
      .msg_info {
        margin: 20px 0px;
        width: 100%;
      }
      .msg_lyric {
        /* margin-top: 60px; */
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        padding-top: 20px;
        overflow-y: auto;
        transition: all 0.3s;
        .lyricActive {
          color: rgb(30, 208, 164);
          font-weight: 600; 
          transform: scale(1.2);
          /* transform: translateY(${(props) => props.activeOffSet}px); */
        }
        &:hover::-webkit-scrollbar-thumb {
          background: rgb(200, 200, 200);
        }
        &::-webkit-scrollbar {
          width: 10px;
        }
        &::-webkit-scrollbar-thumb {
          border-radius: 10px;
          opacity: 0.2;
          background: rgba(214, 214, 214, 0.05);
        }
        &::-webkit-scrollbar-track {
          border-radius: 0;
          background: transparent;
        }
        p {
          transition: all 0.6s;
        }
      }
    }
  }
  .down {
    color: gray;
    font-size: 30px;
    position: absolute;
    top: 30px;
    left: 30px;
    &:hover {
      color: white;
    }
  }
`;

export default LyricWarrper;
